package org.example;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

//2.16	获取充值记录(A16)
public class PostDemoA16 {

    public static void main(String[] args) {
        // 构建嵌套JSON结构
        Map<String, Object> data = new HashMap<>();
        data.put("id", "A16");
        data.put("pageindex", "1");
        data.put("pagesize", "100");
        data.put("empid", "888888");
        data.put("start_time", "2021-08-17 10:46:17");
        data.put("end_time", "2021-12-08 17:32:00");

        try {
// {"data":{"id":"A08","DeptID":"zsdfd150"},"openid":"000001","timestamp":"20250507153953"}
            String response = sendJsonPostRequest.sendJsonPostRequest(data);
            System.out.println("响应内容：\n" + response);
// {"errcode":"0","msg":"成功","totalpage":1,"pagesize":100,"pageindex":1,"total":2,"data":[{"empid":"888888","empname":"测试2",
// "charge_money":"100","card_balance":"100","op_date":"2021-08-17 14:46:17","nRecSeq":"10042","kind":"1"},{"empid":"888888",
// "empname":"测试2","charge_money":"100","card_balance":"103","op_date":"2021-08-17 16:46:29","nRecSeq":"10043","kind":"1"}]}
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}



